package com.zhongwang.business.module.baseCostManage.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 *  外购件model
 * @author China.kxx
 * @date 2020/10/21 14:43
 */
@Data
public class InputOutsourcingModel {
    /**对应前台传值*/
    @ExcelIgnore
    private Integer kbId;
    @ExcelIgnore
    private Integer inputKind;
    @ExcelIgnore
    private Integer inputDesignType;
    @ExcelIgnore
    private Integer inputMacId;
    @ExcelIgnore
    private String inputPartName;
    @ExcelIgnore
    private String inputCostKind;
    @ExcelIgnore
    private String inputCode;



    /**外购计划数据、错误数据导出*/
    /**主键*/
    @ExcelIgnore
    private Integer id;

    /**外键：看板项目id*/
    @ExcelIgnore
    private Integer fkId;

    /**外键：看板项目id*/
    @ExcelIgnore
    private String fkCode;

    /**数据类型  0：预算用的计划单数据1：核算用的实际确认单数据*/
    @ExcelIgnore
    private Integer kind;

    /**设计专业数据类型   1机械2自动化3流体*/
    @ExcelIgnore
    private Integer designType;

    /**外键：成本录入项id*/
    @ExcelIgnore
    private Integer fkInputId;

    /**项目部位结构名称*/
    @ExcelIgnore
    private String partName;

    /**数据名称区分  设计\铆焊\涂装\装配\安装\热处理\外购件\原材料\外协\机加\运输直接显示的是成本录入项的文字*/
    @ExcelIgnore
    private String costKind;

    /**填报人*/
    @ExcelIgnore
    private String inputUser;

    /**填报时间*/
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date editDate;

    /**接收标识  0=未接收，1=已接收*/
    @ExcelIgnore
    private Integer isReceive;

    /**接收时间*/
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date receiveDate;

    /**物料数据类型  机械、流体、自动化、外观（包括油漆）、消耗品（包括气体）、维修备件、办公用品*/
    @ExcelIgnore
    private String outMalType;



    /**单价*/
    @ExcelIgnore
    private BigDecimal outPrice;





    /**图号（外协）*/
    @ExcelIgnore
    private String outDiagram;

    /**外协数据类型（外协）*/
    @ExcelIgnore
    private String outAssistType;

    /**使用库存*/
    @ExcelIgnore
    private Integer outUseStore;

    /**提报计划数据类型  提报计划数据类型1=外购件，2=外协件，3=原材料*/
    @ExcelIgnore
    private Integer outReportType;

    /**状态  状态0=删除，1=正常*/
    @ExcelIgnore
    private Integer outDeleteFlag;

    /**材质*/
    @ExcelIgnore
    private String outTexture;


    /**序号*/
    @ExcelProperty(value = "序号", index = 0)
    private String serial;

    /**物料描述*/
    @ExcelProperty(value = "物料描述", index = 1)
    private String outMalDesc;

    /**数量*/
    @ExcelProperty(value = "数量", index = 2)
    private Double outNum;
    /**单位*/
    @ExcelProperty(value = "单位", index = 3)
    private String outUnit;

    /**型号/标准号*/
    @ExcelProperty(value = "型号/标准号", index = 4)
    private String outStandard;

    /**品牌*/
    @ExcelProperty(value = "品牌", index = 5)
    private String outBrand;

    /**备注*/
    @ExcelProperty(value = "备注", index = 6)
    private String outRemark;

    /**错误信息*/
    @ExcelProperty(value = "错误信息", index = 7)
    private String reason;

}